package com.asman.vr.constant

object ErrorCode {

    const val _10000 = "10000"    //操作成功
    const val _f10000 = "-10000"  //入参不正确
    const val _f10010 = "-10010"  //用户未登陆
    const val _f10020 = "-10020"  //无权访问
    const val _f10030 = "-10030"  //操作失败
    const val _f10040 = "-10040"  //登录超时
    const val _f10050 = "-10050" //访问路径不存在
    const val _f10060 = "-10060"  //账号被其他人登录
    const val _f10070 = "-10070"  //账户已停用

    /**
     * 登陆token 是否失效
     * true：失效
     * false：没有失效
     */
    fun tokenLoseEfficacy(code: String?): Boolean = (code == _f10010 || code == _f10040 || code == _f10060 || code == _f10070)
}